package com.aysafety.eventmodel.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: iotDataPlatform
 * @description: 瓦斯
 * @author: ChengQi
 * @create: 2019-02-14 13:37
 **/
@Mapper
@Repository
public interface GasDao {

    /** 
    * @Description: 瓦斯实时浓度数据数量
    * @Param: [parram] 
    * @return: long 
    * @Author: ChengQi 
    * @Date: 2019/2/14 
    */ 
    long countByGas(Map<String, Object> parram);

    /** 
    * @Description: 瓦斯实时浓度
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/2/14 
    */ 
    List<Map<String, Object>> queryRealTimeByGas(Map<String, Object> parram);

    /** 
    * @Description:取绝对瓦斯涌出量平均值
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/2/14 
    */ 
    List<Map<String, Object>> queryGasAbsEmissionList(Map<String, Object> parram);

    /** 
    * @Description: 保存特征参
    * @Param: [param] 
    * @return: void 
    * @Author: ChengQi 
    * @Date: 2019/2/15 
    */ 
    void saveCal(Map<String, Object> param);
}
